home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10429 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Converting Strings to Upper Case
  5. Date: Sun, 17 Mar 96 18:37:23 GMT
  6. Organization: none
  7. Message-ID: <827087843snz@genesis.demon.co.uk>
  8. References: <4ifra6$52i@scipio.cyberstore.ca>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4ifra6$52i@scipio.cyberstore.ca> ejw@news.cyberstore.ca "
  15. " writes:
  16.  
  17. >Hi,
  18. >
  19. >I need to write a function to convert a string containg upper or lower case
  20. >characters to the opposite case.  Something like:
  21. >
  22. >  void libConvertUpperCase(char *str);  and
  23. >  void libConvertLowerCase(char *str);
  24. >
  25. >and the string would be modified.  I just can't seem to wrap my head around 
  26. >the best way that I know is better than writing a for loop to check each 
  27. >element in the array?
  28.  
  29. That sentence doesn't parse. The best way that I know is to write a for loop
  30. and check each character in the string - any method will ultimately boil
  31. down to this. If you think you know of a better method perhaps you
  32. could explain?
  33.  
  34. -- 
  35. -----------------------------------------
  36. Lawrence Kirby | fred@genesis.demon.co.uk
  37. Wilts, England | 70734.126@compuserve.com
  38. -----------------------------------------
  39.